<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "me_user_frost_record".
 *
 * @property integer $id
 * @property integer $userid
 * @property string $username
 * @property integer $froststatus
 * @property integer $frosted_at
 * @property integer $created_at
 * @property integer $updated_at
 */
class UserFrostRecord extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'me_user_frost_record';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userid', 'froststatus', 'frosted_at', 'created_at', 'updated_at'], 'integer'],
            [['username'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'userid' => '会员ID',
            'username' => '会员账号',
            'froststatus' => '冻结状态(1冻结,2拉黑)',
            'frosted_at' => '冻结结束时间',
            'created_at' => '冻结时间',
            'updated_at' => '更新时间',
        ];
    }
}
